#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

string itoa(int n)
{
    string str;
    bool bNegative = false;

    if (n<0)
    {
        bNegative = true;
        n = -n;
    }

    while (n!=0)
    {
        str.push_back(n%10+'0');
        n = n/10;
    }

    if (bNegative) str.push_back('-');

    reverse(str.begin(), str.end());

    return str;
}

int main()
{
	int n;
	string s;

	cin >> n;

    s = itoa(n);

    cout << s << endl;

	return 0;
}

